package com.gitee.wsl.compose.ui.paged

import com.gitee.wsl.unit.length.LengthUnit


/**
 * A generic bounding box with a width and a height.
 */
data class BoundingBox(
    val width: LengthUnit,
    val height: LengthUnit,
) {
    /**
     * A 90-degrees rotated version of this bounding box,
     * which happens to be a new [BoundingBox] with the height and width swapped.
     */
    val rotated: BoundingBox
        get() = BoundingBox(height, width)
}
